<template>
    <div>
        <el-table
      :data="tableData"
      style="width: 97%; margin-left: 20px; border-radius: 10px;"
      
    >
      <el-table-column prop="oid" label="订单编号"> </el-table-column>
      <el-table-column prop="arrdate" label="入住时间"> </el-table-column>
      <el-table-column prop="leavedate" label="离开时间"> </el-table-column>
      <el-table-column prop="oprice" label="价格"> </el-table-column>
      
    </el-table>
    </div>
</template>

<script>
  import axios from "axios";
export default {
  data() {
    return {
      tableData: [],
    };
  },
  mounted () {
    this.download();;
  },
  methods: {
    //123123123
    //555555
    download() {
      var url = "http://localhost:3000/order/infor/1";
      axios.get(url).then((res) => {
        console.log(res);
        this.tableData = res.data.data
        
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.el-table{
  margin-top: 0;
}
</style>